package cn.bdqn.services.dept.service.impl;

import cn.bdqn.model.pojo.Dept;
import cn.bdqn.services.dept.mapper.DeptMapper;
import cn.bdqn.services.dept.service.DeptService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Author 徐凤年
 * @Date 2022/3/25 14:45
 * @Version 1.0
 */
@Service("deptService")
public class DeptServiceImpl implements DeptService {
    @Resource
    private DeptMapper mapper;
    public Dept getDeptId(int id) {
        return mapper.getDeptId(id);
    }

    public boolean deptAdd(Dept dept) {
        return mapper.deptAdd(dept);
    }

    public List<Dept> getDeptList() {
        return mapper.getDeptList();
    }
}
